//
//  BaseCacheManager.m
//  Project
//
//  Created by Suny on 14-8-11.
//  Copyright (c) 2014年 Suny. All rights reserved.
//

#import "BaseCacheManager.h"
#import "BaseDefines.h"
#import "NSString+BaseFramework.h"
@implementation BaseCacheManager

+ (NSString *)cachePath
{
	NSString *cachePath = [[NSString cacheDirPath] stringByAppendingPathComponent:kAppSignIdentifier];
	NSFileManager * fileManager = [NSFileManager defaultManager];
	[fileManager createDirectoryAtPath:cachePath withIntermediateDirectories:NO attributes:nil error:nil];
	return cachePath;
}

- (NSString *)cachePath
{
	return [BaseCacheManager cachePath];
}

+ (NSString *)userDocumentPath
{
	NSString *result = [[NSString documentPath] stringByAppendingPathComponent:kAppSignIdentifier];
	NSFileManager * fileManager = [NSFileManager defaultManager];
	[fileManager createDirectoryAtPath:result withIntermediateDirectories:NO attributes:nil error:nil];
	return  result;
}

- (NSString *)userDocumentPath
{
	return [BaseCacheManager userDocumentPath];
}

- (id)init
{
    if (self = [super init])
    {

    }
    return self;
}


@end
